﻿/// <reference path="../Core.js" />
IM.CurrentUserManager = function() {
    IM.Base.apply(this, arguments);

    this.User;

    this.GetCurrentUserInfoCallBack = function(data) {
        if (data.Result) {
            IM.Chat.CurrentUserManager.User = data.UserInfo;
            //调用界面刷新
            //alert(aaa);
        }
    };

    this.GetCurrentUserInfo = function() {//查询当前用户信息
        $.post("GetCurrentUserInfo", null, this.GetCurrentUserInfoCallBack, "json");
    };

    //用户注销
    this.Logout = function() {
        $.post("Logout", null, null, "json");
    };
};